
// 参考:https://github.com/ag-grid/ag-grid
import { ref } from 'vue'
import iconText from '@/components/table/grid/IconText.vue'
import { ColDef } from 'ag-grid-community'
export const iconTextSelector =
(params: any) => {
  if (params.data.status === 1) {
    return {
      component: iconText,
      params: { value: 'open' }
    }
  } else {
    return {
      component: iconText,
      params: { value: 'close' }
    }
  }
}